<template>
	<!-- 商品列表页 -->
	<view class="goodListContainer">
		<searchInput/>
		<Tabs :tabs="tabs"/>
	</view>
</template>

<script>
	import searchInput from "../../component/searchInput.vue"
	import Tabs from "../../component/Tabs.vue"
	
	export default {
		data() {
			return {
				cid:'',	 	//传递过来的id
				tabs:[
					{
						id:0,
						value:"综合",
						isActive:true
					},
					{
						id:1,
						value:"销量",
						isActive:false
					},
					{
						id:2,
						value:"价格",
						isActive:false
					}
				]
				
			}
		},
		onLoad(options) {
			console.log(options)
			this.cid = options.cid
			console.log(this.cid)
		},
		methods: {
			
		},
		components:{
			searchInput,
			Tabs
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #ebebeb ;
	}
</style>
